<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="home/public/head::head(~{::title},~{},~{})">
	<title>用户信息-新闻管理系统</title>
</head>
	
<body>

	<!--顶部导航栏导入-->
	<div th:replace="home/public/top-menu::top-menu"></div>

    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-xs12">
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                    <legend>用户详情</legend>
                </fieldset>

                <div style="padding: 20px; background-color: #F2F2F2;">
                    <div class="layui-row layui-col-space15">
                        <div class="layui-col-md7" style="max-height: 500px">
                            <div class="layui-card layui-anim layui-anim-upbit">
                                <div class="layui-card-header">基本信息</div>
                                <div class="layui-card-body">
                                    <table class="layui-table">
                                        <tbody>
                                        <tr>
                                            <th class="layui-col-md4">用户名称</th>
                                            <td th:text="${user.name}">出错啦</td>
                                        </tr>
                                        <tr>
                                            <th class="layui-col-md4">登录账号</th>
                                            <td th:text="${user.code}">出错啦</td>
                                        </tr>
                                        <tr>
                                            <th class="layui-col-md4">用户手机</th>
                                            <td th:text="${user.mobile}">出错啦</td>
                                        </tr>
                                        <tr>
                                            <th class="layui-col-md4">用户性别</th>
                                            <td th:text="${user.sex==0?'女':'男'}">出错啦</td>
                                        </tr>
                                        <tr>
                                            <th class="layui-col-md4">用户邮箱</th>
                                            <td th:text="${user.mobile}">出错啦</td>
                                        </tr>
<!--                                        <tr>-->
<!--                                            <th class="layui-col-md4">联系地址</th>-->
<!--                                            <td th:text="${user.address}">出错啦</td>-->
<!--                                        </tr>-->
                                        <tr>
                                            <th class="layui-col-md4">创建时间</th>
                                            <td th:text="${#temporals.format(user.createTime, 'yyyy-MM-dd HH:mm:ss')}">出错啦</td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
<!--                            <a class="layui-btn" th:href="${'/home/user/homeEditPage?id='+user.id}">修改信息</a>-->
                        </div>
                        <div class="layui-col-md5" >
                            <div class="layui-card layui-anim layui-anim-upbit" style="height: 345px;position: relative">
                                <div class="layui-card-header">用户头像</div>
                                <div class="layui-card-body layui-anim layui-anim-scaleSpring" style="text-align: center">
                                    <img th:src="@{${'/file/fileDown?saveName='+user.field1}}" class="img-responsive img-rounded"
                                         style="max-width: 100%;max-height: 100%;">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md12">
                            <div class="layui-card layui-anim layui-anim-upbit">
                                <div class="layui-card-header">个人简介</div>
                                <div class="layui-card-body" style="min-height: 250px;">
<!--                                    <th:text="${user.field0==''||user.field0==null?'这家伙很懒...................':user.field0}">-->
                                    这家伙很懒...................
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 底部导航栏 start-->
    <footer th:replace="home/public/footer::footer"></footer>
    <!-- 底部导航栏end -->

</body>
</html>
